package punctuatedEquilibrium;

public class Trait {

	private double	value;

	public Trait(double traitValue) {
		value = traitValue;
	}

	public void add(double addition) {
		value += addition;
	}

	public Trait duplicate() {
		double newValue = value;
		Trait newTrait = new Trait(newValue);
		return newTrait;
	}

	public double reportValue() {
		return value;
	}

	public boolean isEquivalent(Trait trait) {
		double valueToBeCompared = trait.reportValue();
		return FloatComparison.equals(value, valueToBeCompared);
	}

}
